(function() {

	var PT;
	if (typeof this.PT === 'undefined') {
		PT = this.PT = {};
	} else {
		PT = this.PT;
	}

	PT.getAssetPage = function(type) {
		
		var basic = {
				title: "Basic Quote",
				type: "ASSET",
				sections: {
					core: {
						title: "Basic Quote", 
						alias: "Quote",
						components: [{
							type: "form", 
							contents: [
								{
									schema: {
										ric: {back: "ASSET.RIC", label: "RIC", type: "Text", validators: ['required']},
										category: {back: "ASSET.ASSETCATEGORY", label: "Category", type :"ViewDiv", hasMeaning: true},
										permid: {back: "ASSET.PERMID", label: "PERMID", type: "Text", readOnly: true },
										state: {back: "ASSET.ASSETSTATE", label: "Asset State", type :"ViewDiv"},
										retireDate: {back: "ASSET.RETIREDATE", label: "Retire Date", type :"jqueryui.Date", validators: [/*'required',*/{type:"dateFormat", format: "dd-MM-yyyy"}]},
										tag: {back: "ASSET.TAG", label: "Tag", type: "Text", readOnly: true },
										//type: {back: "ASSET.TYPE", label: "Type", type :"ViewDiv"},
										currency: {back: "ASSET.QUOTATIONCURRENCY", label: "Currency", type: "SelectDropdown", elem_id: "currency", actions: [0,1,2,3], clearable:false },
										exchange: {back: "ASSET.QUOTATIONGROUPEDBYPSEUDOEXCH", label: "Exchange", type: "SelectDropdown", elem_id: "exchange", actions: [0,1,2,3], clearable:false/*, validators: ['requiredResult']*/ }
									}
								},
								{
									title: "Trading Hours",
									schema: {
										tradingSession: {back: "", label: "Trading Session", type: "SelectDropdown", elem_id: "tradingsession" },							
										openTime: {back: "", label: "OpenTime", type :"DateTime"},
										closeTime: {back: "", label: "Close Time", type :"DateTime"},
										settleArrivalTime: {back: "", label: "Settle Arrival Time", type :"DateTime"},
										closingRunTime: {back: "", label: "Closing Run Time", type :"DateTime"},
										updateTime: {back: "", label: "Update Time", type :"DateTime"}							
									}
								}
							]
						}]
					},
			        ladder: {
			        	title: "Ladder",
			        	components: [
			        	    {
			        	    	type: "table", 
			        	    	id: "TICKLADDER",
			        	    	caption: "Tick Ladder Assignment", 
			        	    	history: true, 
			        	    	actions: [1,2,3,4],
			        	    	cols : [
			        	        	{name: "Flag", field: "flag", type: "Boolean", editable: true, editType: "Checkbox", width: 30 },
			        	            {name: "Name", field: "name", type: "String", editable: true, editType: "Text", width: 100},
			        	            {name: "Effective From", field: "effective_from", type: "String", editable: true, editType: "Text", width: 100},
			        	            {name: "Effective To", field: "effective_to", type: "String", editable: true, editType: "Text", width: 100},
			        	            {name: "Price Indicator", field: "price_indicator", type: "String", editable: true, editType: "Text", width: 100},
			        	            {name: "Meaning", field: "meaning", type: "String", editable: true, editType: "Text", width: 130},
			        	            {name: "Begin Date", field: "begin_date", type: "Date", width: 120}
			        	        ]
			        	    },
			        	    {
			        	    	type: "table", 
			        	    	id: "LOTLADDER",
			        	    	caption: "Lot Ladder Assignment",
			        	    	history: true, 
			        	    	actions: [1,2,3,4],
			        	    	cols : [
			        	        	{name: "Flag", field: "flag", type: "Boolean", editable: true, editType: "Checkbox", width: 30 },
			        	            {name: "Name", field: "name", type: "String", editable: true, editType: "Text", width: 100},
			        	            {name: "Effective From", field: "effective_from", type: "String", editable: true, editType: "Text", width: 100},
			        	            {name: "Effective To", field: "effective_to", type: "String", editable: true, editType: "Text", width: 100},
			        	            {name: "Price Indicator", field: "price_indicator", type: "String", editable: true, editType: "Text", width: 100},
			        	            {name: "Meaning", field: "meaning", type: "String", editable: true, editType: "Text", width: 130},
			        	            {name: "Begin Date", field: "begin_date", type: "Date", width: 120}
			        	        ]
			        	    }
			            ]
					},
			        name: {
			        	title: "Name",
			        	components: [
			        	    {
			        	    	type: "table", 
			        	    	id: "NAME",
			        	    	caption: "Name", 
			        	    	history: true, 
			        	    	actions: [1,2,3,4],
			        	    	cols : [
									{name: "Property", field: "type", type: "String", editable: true, editType: "SelectDropdown", width: 180 },
									{name: "Value", field: "value", type: "String", editable: true, editType: "Text", width: 360},
									{name: "Begin Date", field: "begin_date", type: "Date", width: 160}
								]
			        	    },
			        	    {
			        	    	type: "table", 
			        	    	id: "localLanguageName",
			        	    	caption: "Local Language Name", 
			        	    	history: true, 
			        	    	actions: [1,2,3,4],
			        	    	cols : [
			        	        	{name: "Flag", field: "flag", type: "Boolean", editable: true, editType: "Checkbox", width: 20 },
			        	        	{name: "Property", field: "property", type: "String", editable: true, editType: "SelectDropdown", width: 180},
			        	        	{name: "Language Code", field: "language_code", type: "String", editable: true, editType: "SelectDropdown", width: 120},
			        	        	{name: "Value", field: "value", type: "String", editable: true, editType: "Text", width: 100},
			        	        	{name: "Transliterated Name", field: "transliterated_name", type: "String", editable: true, editType: "Text", width: 120},
			        	        	{name: "Begin Date", field: "begin_date", type: "Date", width: 160}
			        	        ]
			        	    }
			        	]
			        },
			        identifier: {
			        	title: "Identifier",
			        	components: [
			        	    {
			        	    	type: "table", 
			        	    	id: "IDENTIFIER",
			        	    	caption: "Identifier", 
			        	    	history: true, 
			        	    	actions: [1,2,3,4], 
			        	    	cols : [
			        	        	{name: "Property", field: "type", type: "String", editable: true, editType: "SelectDropdown", width: 180 },
			        	        	{name: "Value", field: "value", type: "String", editable: true, editType: "Text", width: 360},
			        	        	{name: "Begin Date", field: "begin_date", type: "Date", width: 160}
			        	        ]
			        	    }
			        	]
			        },
			        clsSchema: {
			        	title: "Classification Schema",
			        	alias: "Classification",
			        	components: [
			        	    {
			        	    	type: "table", 
			        	    	id: "CLASSIFICATIONSCHEME",
			        	    	caption: "Classification Schema", 
			        	    	history: true, 
			        	    	actions: [1,2,3,4], 
			        	    	cols : [
			        	                {name: "Property", field: "type", type: "String", editable: true, editType: "SelectDropdown", width: 180 },
			        	                {name: "Value", field: "value", type: "String", editable: true, editType: "SelectDropdown_c", classifier: "ASSET.CLASSIFIER", width: 180},
			        	                {name: "Meaning", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content", width: 180},
			        	                {name: "Begin Date", field: "begin_date", type: "Date", width: 160}
			        	        ]
			        	    }
			        	]
			        },
			        sedol: {
			        	title: "SEDOL Secondary Quote Relationship",////////////////
			        	alias: "SEDOL",
			        	components: [{
							type: "form", 
							contents: [
								{
									title: "SEDOL Maintenance",
									schema: {
										sedol_value: {back: "ASSET.SEDOLVALUE", label: "Value", type: "Text"},
										sedol_begin_date: {back: "ASSET.SEDOLBEGINDATE", label: "Begin Date", type :"Text", readOnly: true}, 		
										sedol_setPri: {back: "ASSET.SEDOLPRIMARY", label: "Set Primary", type: "Checkbox"}
									}
								},
								{
									title: "ISE OPOL Maintenance",
									schema: {
										opol_value: {back: "ASSET.OPOLVALUE", label: "Value", type :"Text", readOnly: true},
										opol_meaning: {back: "ASSET.OPOLMEANING", label: "Meaning", type :"Text", readOnly: true},
										opol_begin_date: {back: "ASSET.OPOLBEGINDATE", label: "Begin Date", type :"Text", readOnly: true}
									}
								},
								{
									title: "Common",
									schema: {
										sedol_commonname: {back: "ASSET.SEDOLCOMMONNAME", label: "Common Name", type: "Text"},
										sedol_mic: {back: "ASSET.MIC", label: "MIC", type: "SelectDropdown", elem_id: "mic"}	
									}
								}
							]},
				        	{
								type: "table", 
								id: "sedol",
								caption: "SEDOL Secondary Quote Relationship", 
								history: true, 
								readOnly: true,
								cols : [
					        		{name: "RIC", field: "ric", type: "String" },
					        		{name: "Asset State", field: "asset_state", type: "String"},
					        		{name: "Common Name", field: "common_name", type: "String"},
					        		{name: "MIC", field: "mic", type: "String"},
					        		{name: "Target Listing", field: "target_listing", type: "Checkbox"}
				        		]
							}
			        	]	
			        },			        
			        assetRelationship: {
			        	title: "Asset Realtionship",////////////////
			        	components: [
			        	    {	        		
			        	    	type: "form", 
								contents: [
									{
										title: "Base Asset Relationship", 
										schema: {
											pilc: {back: "", label: "PILC", type: "Text"},
					        				baseCommonname: {back: "", label: "Common Name", type :"Text"} 			
										}
									}
								]
			        	    }
			        	]	
			        }		
				}
			};
		
		var commodity = {
			title: "Commodity Quote",
			type: "ASSET",
			sections: {
				core: {
					title: "Commodity Quote",
					alias: "Quote",
					components: [{
						type: "form", 
						contents: [
							{
								schema: {
									ric: {back: "ASSET.RIC", label: "RIC", type: "Text", validators: ['required']},
									category: {back: "ASSET.ASSETCATEGORY", label: "Category", type :"ViewDiv", hasMeaning: true},
									permid: {back: "ASSET.PERMID", label: "PERMID", type: "Text", readOnly: true },
									tag: {back: "ASSET.TAG", label: "Tag", type: "Text", readOnly: true },
									state: {back: "ASSET.ASSETSTATE", label: "Asset State", type :"ViewDiv"},
									retireDate: {back: "ASSET.RETIREDATE", label: "Retire Date", type :"jqueryui.Date", validators: [/*'required',*/{type:"dateFormat", format: "dd-MM-yyyy"}]},
									currency: {back: "ASSET.QUOTATIONCURRENCY", label: "Currency", type: "SelectDropdown", elem_id: "currency", actions: [0,1,2,3], clearable:false },
									exchange: {back: "ASSET.QUOTATIONGROUPEDBYPSEUDOEXCH", label: "Exchange", type: "SelectDropdown", elem_id: "exchange", actions: [0,1,2,3], clearable:false/*, validators: ['requiredResult']*/ },
									trades: {back: "ASSET.TRADES", label:"",type:"Accessory"},
									sourceType: {back: "ASSET.TRADES.SOURCETYPE", label:"Source Type",type:"ViewDiv"},
									sourceName: {back: "ASSET.TRADES.COMMONNAME", label:"Source Name",type:"ViewDiv"},
									priceUnit: {back: "COMMODITY.PRICINGUNIT", label: "Price Unit", type: "SelectDropdown", elem_id: "priceUnit"},
									btuPerBarrel: {back: "COMMODITY.BTUPERBARREL", label: "BTU per Barrel", type :"DigitNumber"},
									barrelsPerTon: {back: "COMMODITY.BARRELSPERTON", label: "Barrels Per Ton", type :"DigitNumber"},
									
									sessionIndicator: {back: "", label: "Session Indicator", type: "SelectDropdown", elem_id: "sessionindicator"},
									periodicityIndicator: {back: "", label: "Periodicity Indicator", type: "SelectDropdown", elem_id: "periodicityindicator"},
									unifyingRoot: {back: "", label: "Unifying Root", type: "SelectDropdown", elem_id: "unifyingroot"},
									marketLocation: {back: "", label: "Market Location", type: "SelectDropdown", elem_id: "marketlocation"},
									tradingMarket: {back: "", label: "Trading Market", type: "SelectDropdown", elem_id: "tradingmarket"},							
									tradingPlatform: {back: "", label: "Trading Platform", type: "SelectDropdown", elem_id: "tradingplatform"},
									dnDe: {back: "", label: "Forthcoming Major DN/DE", type: "SelectDropdown", elem_id: "dnde"}
								}
							},
							{
								title: "Trading Hours",
								schema: {
									tradingSession: {back: "", label: "Trading Session", type: "SelectDropdown", elem_id: "tradingsession" },							
									openTime: {back: "", label: "OpenTime", type :"DateTime"},
									closeTime: {back: "", label: "Close Time", type :"DateTime"},
									settleArrivalTime: {back: "", label: "Settle Arrival Time", type :"DateTime"},
									closingRunTime: {back: "", label: "Closing Run Time", type :"DateTime"},
									updateTime: {back: "", label: "Update Time", type :"DateTime"}							
								}
							}
						]
					}]
				},
		        ladder: {
		        	title: "Ladder",
		        	components: [
		        	    {
		        	    	type: "table", 
		        	    	id: "TICKLADDER",
		        	    	caption: "Tick Ladder Assignment", 
		        	    	history: true, 
		        	    	actions: [1,2,3,4],
		        	    	cols : [
		        	        	{name: "Flag", field: "flag", type: "Boolean", editable: true, editType: "Checkbox", width: 30 },
		        	            {name: "Name", field: "name", type: "String", editable: true, editType: "Text", width: 100},
		        	            {name: "Effective From", field: "effective_from", type: "String", editable: true, editType: "Text", width: 100},
		        	            {name: "Effective To", field: "effective_to", type: "String", editable: true, editType: "Text", width: 100},
		        	            {name: "Price Indicator", field: "price_indicator", type: "String", editable: true, editType: "Text", width: 100},
		        	            {name: "Meaning", field: "meaning", type: "String", editable: true, editType: "Text", width: 130},
		        	            {name: "Begin Date", field: "begin_date", type: "Date", width: 120}
		        	        ]
		        	    },
		        	    {
		        	    	type: "table", 
		        	    	id: "LOTLADDER",
		        	    	caption: "Lot Ladder Assignment",
		        	    	history: true, 
		        	    	actions: [1,2,3,4],
		        	    	cols : [
		        	        	{name: "Flag", field: "flag", type: "Boolean", editable: true, editType: "Checkbox", width: 30 },
		        	            {name: "Name", field: "name", type: "String", editable: true, editType: "Text", width: 100},
		        	            {name: "Effective From", field: "effective_from", type: "String", editable: true, editType: "Text", width: 100},
		        	            {name: "Effective To", field: "effective_to", type: "String", editable: true, editType: "Text", width: 100},
		        	            {name: "Price Indicator", field: "price_indicator", type: "String", editable: true, editType: "Text", width: 100},
		        	            {name: "Meaning", field: "meaning", type: "String", editable: true, editType: "Text", width: 130},
		        	            {name: "Begin Date", field: "begin_date", type: "Date", width: 120}
		        	        ]
		        	    }
		            ]
				},
		        name: {
		        	title: "Name",
		        	components: [
		        	    {
		        	    	type: "table", 
		        	    	id: "NAME",
		        	    	caption: "Name", 
		        	    	history: true, 
		        	    	actions: [1,2,3,4],
		        	    	cols : [
								{name: "Property", field: "type", type: "String", editable: true, editType: "SelectDropdown", width: 180 },
								{name: "Value", field: "value", type: "String", editable: true, editType: "Text", width: 360},
								{name: "Begin Date", field: "begin_date", type: "Date", width: 160}
							]
		        	    },
		        	    {
		        	    	type: "table", 
		        	    	id: "localLanguageName",
		        	    	caption: "Local Language Name", 
		        	    	history: true, 
		        	    	actions: [1,2,3,4],
		        	    	cols : [
		        	        	{name: "Flag", field: "flag", type: "Boolean", editable: true, editType: "Checkbox", width: 20 },
		        	        	{name: "Property", field: "property", type: "String", editable: true, editType: "SelectDropdown", width: 180},
		        	        	{name: "Language Code", field: "language_code", type: "String", editable: true, editType: "SelectDropdown", width: 120},
		        	        	{name: "Value", field: "value", type: "String", editable: true, editType: "Text", width: 100},
		        	        	{name: "Transliterated Name", field: "transliterated_name", type: "String", editable: true, editType: "Text", width: 120},
		        	        	{name: "Begin Date", field: "begin_date", type: "Date", width: 160}
		        	        ]
		        	    }
		        	]
		        },
		        identifier: {
		        	title: "Identifier",
		        	components: [
		        	    {
		        	    	type: "table", 
		        	    	id: "IDENTIFIER",
		        	    	caption: "Identifier", 
		        	    	history: true, 
		        	    	actions: [1,2,3,4], 
		        	    	cols : [
		        	        	{name: "Property", field: "type", type: "String", editable: true, editType: "SelectDropdown", width: 180 },
		        	        	{name: "Value", field: "value", type: "String", editable: true, editType: "Text", width: 360},
		        	        	{name: "Begin Date", field: "begin_date", type: "Date", width: 160}
		        	        ]
		        	    }
		        	]
		        },
		        clsSchema: {
		        	title: "Classification Schema",
		        	alias: "Classification",
		        	components: [
		        	    {
		        	    	type: "table", 
		        	    	id: "CLASSIFICATIONSCHEME",
		        	    	caption: "Classification Schema", 
		        	    	history: true, 
		        	    	actions: [1,2,3,4], 
		        	    	cols : [
		        	                {name: "Property", field: "type", type: "String", editable: true, editType: "SelectDropdown", width: 180 },
		        	                {name: "Value", field: "value", type: "String", editable: true, editType: "SelectDropdown_c", classifier: "ASSET.CLASSIFIER", width: 180},
		        	                {name: "Meaning", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content", width: 180},
		        	                {name: "Begin Date", field: "begin_date", type: "Date", width: 160}
		        	        ]
		        	    }
		        	]
		        },
		        sedol: {
		        	title: "SEDOL Secondary Quote Relationship",
		        	alias: "SEDOL",
		        	components: [{
						type: "form", 
						contents: [
							{
								title: "SEDOL Maintenance",
								schema: {
									sedol_value: {back: "ASSET.SEDOLVALUE", label: "Value", type: "Text"},
									sedol_begin_date: {back: "ASSET.SEDOLBEGINDATE", label: "Begin Date", type :"Text", readOnly: true}, 		
									sedol_setPri: {back: "ASSET.SEDOLPRIMARY", label: "Set Primary", type: "Checkbox"}
								}
							},
							{
								title: "ISE OPOL Maintenance",
								schema: {
									opol_value: {back: "ASSET.OPOLVALUE", label: "Value", type :"Text", readOnly: true},
									opol_meaning: {back: "ASSET.OPOLMEANING", label: "Meaning", type :"Text", readOnly: true},
									opol_begin_date: {back: "ASSET.OPOLBEGINDATE", label: "Begin Date", type :"Text", readOnly: true}
								}
							},
							{
								title: "Common",
								schema: {
									sedol_commonname: {back: "ASSET.SEDOLCOMMONNAME", label: "Common Name", type: "Text"},
									sedol_mic: {back: "ASSET.MIC", label: "MIC", type: "SelectDropdown", elem_id: "mic"}	
								}
							}
						]},
			        	{
							type: "table", 
							id: "sedol",
							caption: "SEDOL Secondary Quote Relationship", 
							history: true, 
							readOnly: true,
							cols : [
				        		{name: "RIC", field: "ric", type: "String" },
				        		{name: "Asset State", field: "asset_state", type: "String"},
				        		{name: "Common Name", field: "common_name", type: "String"},
				        		{name: "MIC", field: "mic", type: "String"},
				        		{name: "Target Listing", field: "target_listing", type: "Checkbox"}
			        		]
						}
		        	]	
		        },
		        refData: {
		        	title: "Search Reference Data",////////////////
		        	alias: "Reference Data",
		        	components: [
							{
								type: "table", 
								id: "pageric",
								caption: "Page RIC",
								actions: [2,4],
								history: false, 
								cols : [
								    {name: "Page RIC", field: "page_ric", type: "String", editable: true, editType: "SelectDropdown", width: 700 }
								]
							},
							{	        		
								type: "form", 
								contents: [
									{
										//title: "", 
										schema: {
											primaryChain: {back: "ASSET.PRIMARYCHAIN.RIC", label: "Primary Chain", type: "SelectDropdown", elem_id: "primarychain", actions: [0,3] },
											displayType: {back: "ASSET.DISPLAYTYPE", label: "Display Type", type: "SelectDropdown", elem_id: "displaytype", hasMeaning: true}											
										}
									}
								]
			        	    }        	
		        	]	
		        },               
		        crsUnit: {
		        	title: "Cross Unit Conversion",
		        	alias: "Cross Unit",
		        	components: [
		        	    {
		        	    	type: "table",
		        	    	id: "CRSUNIT",
		        	    	caption: "Cross Unit Conversion",  
		        	    	actions: [2,4],
		        	    	history: false, 
		        	    	cols : [
		        	        	{name: "Type Name", field: "value", type: "String", editable: true, editType: "SelectDropdown_c", classifier: "", clsType: "alone", hasMeaning: true, width: 140 },
		        	        	{name: "Type Meaning", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content", width: 220},
		        	        	{name: "Factor", field: "factor", type: "String", editable: true, editType: "Text", width: 340}
		        	        ]
		        	    }
		        	]
		        },
		        assetRelationship: {
		        	title: "Asset Realtionship",////////////////
		        	components: [
		        	    {	        		
							type: "form", 
							contents: [
								{
									title: "Underlying Asset Relationship to Notional Product", 
									schema: {
										assetRelationship_ric: {back: "ASSET.UNDERLYINGASSET.RIC", label: "RIC", type: "Text"},
										assetRelationship_category: {back: "ASSET.UNDERLYINGASSET.CATEGORY", label: "Category", type :"ViewDiv", hasMeaning: true} 			
									}
								}
							]
		        	    },
			        	{
							type: "table", 
							id: "ASSET.UNDERLYING",
							caption: "Underlying Asset Relationship to Notional Product",
							history: true, 
							cols : [
							    {name: "Notional Product", field: "value", type: "String", editable: true, editType: "SelectDropdown_c", classifier: "", clsType: "alone", width: 280 },
							    {name: "Meaning", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content", width: 420} 
				        	]
						},
			        	{
							type: "table", 
							id: "ASSET.RCSUNDERLYINGPRODUCT",
							caption: "Asset Relationship to RCS Underlying Product", 
							history: true, 
							cols : [
				        		{name: "RCS Underlying Product", field: "value", type: "String", editable: true, editType: "SelectDropdown_c", classifier: "", clsType: "alone", width: 280 },
				        		{name: "Meaning", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content", width: 420}   	                
				        	]
						}
		        	]	
		        },
		        locations: {
		        	title: "Locations",
		        	components: [
		        	    {
		        	    	type: "table",
		        	    	id: "LOCATIONS",
		        	    	caption: "Locations",        	    	 
		        	    	actions: [1,3,4],
		        	    	cols : [
		        	        	{name: "Location Type", field: "type", type: "String", editable: true, editType: "SelectDropdown", width: 180},
		        	        	{name: "Location Name", field: "value", type: "String", editable: true, editType: "SelectDropdown_l", hasMeaning: true, width: 180},
		        	        	{name: "Location Description", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content", width: 340}
		        	        ]
		        	    }
		        	]        	                                   
		        },
		        miscellaneous: {
		        	title: "Miscellaneous", template: "miscellaneous",////////////////
		        	components: [{
						type: "form", 
						contents: [
							{
								title: "EM Admin Status",
								schema: {
									emadmin_status: {back: "", label: "EM Admin Status", type: "Text", readOnly:true},
				    		    	emadmin_meaning: {back: "", label: "EM Admin Status Meaning", type :"Text", readOnly:true},
				    		    	emadmin_begin_date: {back: "", label: "Begin Date", type: "Text", readOnly:true}			
								}
							},
							{
								title: "Time Series",
								schema: {
									timeseries_adjusted: {back: "", label: "Basic Gap Adjusted", type: "Checkbox", readOnly: true},
									timeseries_trigger: {back: "", label: "Basic Gap Adjustment Trigger", type :"Text", readOnly:true}			
								}
							}
						]
		        	}]	
		        }			
			}
		};
		
		var futuresOption = {
				title: "Futures Option Quote",
				type: "ASSET",
				sections: {
					core: {
						title: "Quote", 
						components: [{
							type: "form", 
							contents: [
								{
									schema: {
										ric: {back: "ASSET.RIC", label: "RIC", type: "Text", validators: ['required']},
										category: {back: "ASSET.ASSETCATEGORY", label: "Category", type :"ViewDiv", hasMeaning: true},
										permid: {back: "ASSET.PERMID", label: "PERMID", type: "Text", readOnly: true },
										tag: {back: "ASSET.TAG", label: "Tag", type: "Text", readOnly: true },
										state: {back: "ASSET.ASSETSTATE", label: "Asset State", type :"ViewDiv"},
										retireDate: {back: "ASSET.RETIREDATE", label: "Retire Date", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},
										currency: {back: "ASSET.QUOTATIONCURRENCY", label: "Currency", type: "SelectDropdown", elem_id: "currency", actions: [0,1,2,3]},
										exchange: {back: "ASSET.QUOTATIONGROUPEDBYPSEUDOEXCH", label: "Exchange", type: "SelectDropdown", elem_id: "exchange", actions: [0,1,2,3]/*, validators: ['requiredResult']*/ },
										trades: {back: "ASSET.TRADES", label:"",type:"Accessory"},
										sourceType: {back: "BODY_GROUP.SOURCETYPE", label:"Source Type",type:"ViewDiv"},
										sourceName: {back: "BODY_GROUP.COMMONNAME", label:"Source Name",type:"ViewDiv"},
										expiry: {back: "DERIVATIVE.EXPIRYDATE", label: "Expiry", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},
										strikePrice: {back: "DERIVATIVE.STRIKEPRICE", label: "Strike Price", type :"DigitNumber"},
										strikePriceMultiplier: {back: "DERIVATIVE.STRIKEPRICEMULTIPLIER", label: "StrikePriceMultiplier", type :"DigitNumber"},
										callPutOption: {back: "DERIVATIVE.CALLPUTOPTION", label: "Call Put Option", type: "SelectDropdown", elem_id: "callput"},
										lotSize: {back: "DERIVATIVE.LOTSIZE", label: "Lot Size", type :"DigitNumber"},
										lotUnit: {back: "DERIVATIVE.LOTUNIT", label: "Lot Unit", type: "SelectDropdown", elem_id: "lotunit"},
										exerciseStyle: {back: "DERIVATIVE.EXERCISESTYLE", label: "Exercise Style", type: "SelectDropdown", elem_id: "exercisestyle"},
										initialMargin: {back: "DERIVATIVE.INITIALMARGIN", label: "Initial Margin", type: "DigitNumber"},
										tickValue: {back: "DERIVATIVE.TICKVALUE", label: "Tick Value", type: "DigitNumber"},
										dailyTradingLimit: {back: "DERIVATIVE.DAILYTRADINGLIMIT", label: "Daily Trading Limit", type: "DigitNumber"},
										methodOfDelivery: {back: "DERIVATIVE.METHODOFDELIVERY", label: "Method Of Delivery", type: "SelectDropdown", elem_id: "methodofdelivery"},
										cashInLieu: {back: "DERIVATIVE.CASHINLIEU", label: "Cash In Lieu", type: "DigitNumber"},							
										tradingStyle: {back: "DERIVATIVE.TRADINGSTYLE", label: "Trading Style", type: "SelectDropdown", elem_id: "tradingstyle"},
										periodicity: {back: "DERIVATIVE.PERIODICITY", label: "Periodicity", type: "SelectDropdown", elem_id: "periodicity"},
										adjustedFlag: {back: "DERIVATIVE.ADJUSTEDFLAG", label: "Adjusted Flag", type: "SelectDropdown", elem_id: "adjustedflag"},
										contractType: {back: "DERIVATIVE.CONTRACTTYPE", label: "Contract Type", type: "SelectDropdown", elem_id: "contracttype"},
										contractDate: {back: "DERIVATIVE.CONTRACTDATE", label: "Contract Date", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},
										aiiCode: {back: "DERIVATIVE.AIICODE", label: "AII Code", type: "Text"},
								
										sessionIndicator: {back: "", label: "Session Indicator", type: "SelectDropdown", elem_id: "sessionindicator"},
										periodicityIndicator: {back: "", label: "Periodicity Indicator", type: "SelectDropdown", elem_id: "periodicityindicator"},
										unifyingRoot: {back: "", label: "Unifying Root", type: "SelectDropdown", elem_id: "unifyingroot"},
										marketLocation: {back: "", label: "Market Location", type: "SelectDropdown", elem_id: "marketlocation"},
										tradingMarket: {back: "", label: "Trading Market", type: "SelectDropdown", elem_id: "tradingmarket"},
										tradingPlatform: {back: "", label: "Trading Platform", type: "SelectDropdown", elem_id: "tradingplatform"},
										dnDe: {back: "", label: "Forthcoming Major DN/DE", type: "SelectDropdown", elem_id: "dnde"}
								/*****/	
									}
								},
								{
									title: "Important Dates", 
									schema: {
										firstDeliveryDay: {back: "DERIVATIVE.FIRSTDELIVERYDAY", label: "First Delivery Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},
										lastDeliveryDay: {back: "DERIVATIVE.LASTDELIVERYDAY", label: "Last Delivery Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},
										firstNoticeDay: {back: "DERIVATIVE.FIRSTNOTICEDAY", label: "First Notice Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},
										lastNoticeDay: {back: "", label: "Last Notice Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},							
										firstTradingDay: {back: "DERIVATIVE.FIRSTTRADINGDAY", label: "First Trading Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},							
										lastTradingDay: {back: "DERIVATIVE.LASTTRADINGDAY", label: "Last Trading Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},													
										firstIntensionDay: {back: "", label: "First Intension Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},							
										lastIntensionDay: {back: "", label: "Last Intension Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},																				
										firstLocationDay: {back: "", label: "First Location Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},							
										allocationDeliveryDay: {back: "", label: "Allocation Delivery Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},													
										settlementDay: {back: "", label: "Settlement Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},													
										serialOptionFirstTradingDay: {back: "", label: "Serial Option First Trading Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},													
										initialInventoryDueDay: {back: "", label: "Initial Inventory Due Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]},													
										spotDay: {back: "", label: "Spot Day", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]}																			
									}
								},
								{
									title: "Trading Hours", 
									schema: {
										tradingSession: {back: "", label: "Trading Session", type: "SelectDropdown", elem_id: "tradingsession" },							
										openTime: {back: "", label: "OpenTime", type :"DateTime"},
										closeTime: {back: "", label: "Close Time", type :"DateTime"},
										settleArrivalTime: {back: "", label: "Settle Arrival Time", type :"DateTime"},
										closingRunTime: {back: "", label: "Closing Run Time", type :"DateTime"},
										updateTime: {back: "", label: "Update Time", type :"DateTime"}				
									}
								}
							]
						}]
					},
					seriesDescription: {
			        	title: "Series Description",
			        	components: [
								{	        		
									type: "form", 
									contents: [
										{
											schema: {
												englishSeriesDescription: {back: "DERIVATIVE.SERIESDESCRIPTION", label: "English Series Description", type: "Text"}
											}
										}
									]
								},  
								{
									type: "table", 
									id: "localLanguageSeries",
									caption: "Local Language Series Description",
									actions: [1,2,3,4],
									history: true, 
									cols : [
									    {name: "Language", field: "type", type: "String", editable: true, editType: "SelectDropdown", width: 180 },
										{name: "Value", field: "value", type: "String", editable: true, editType: "Text", width: 360},
										{name: "Begin Date", field: "begin_date", type: "Date", width: 160}
									]
								}					     	
			        	]	
			        },    
					ladder: {
			        	title: "Ladder",
			        	components: [
			        	    {
			        	    	type: "table", 
			        	    	id: "TICKLADDER",
			        	    	caption: "Tick Ladder Assignment", 
			        	    	history: true, 
			        	    	actions: [1,2,3,4],
			        	    	cols : [
			        	        	{name: "Flag", field: "flag", type: "Boolean", editable: true, editType: "Checkbox", width: 30 },
			        	            {name: "Name", field: "name", type: "String", editable: true, editType: "Text", width: 100},
			        	            {name: "Effective From", field: "effective_from", type: "String", editable: true, editType: "Text", width: 100},
			        	            {name: "Effective To", field: "effective_to", type: "String", editable: true, editType: "Text", width: 100},
			        	            {name: "Price Indicator", field: "price_indicator", type: "String", editable: true, editType: "Text", width: 100},
			        	            {name: "Meaning", field: "meaning", type: "String", editable: true, editType: "Text", width: 130},
			        	            {name: "Begin Date", field: "begin_date", type: "Date", width: 120}
			        	        ]
			        	    },
			        	    {
			        	    	type: "table", 
			        	    	id: "LOTLADDER",
			        	    	caption: "Lot Ladder Assignment",
			        	    	history: true, 
			        	    	actions: [1,2,3,4],
			        	    	cols : [
			        	        	{name: "Flag", field: "flag", type: "Boolean", editable: true, editType: "Checkbox", width: 30 },
			        	            {name: "Name", field: "name", type: "String", editable: true, editType: "Text", width: 100},
			        	            {name: "Effective From", field: "effective_from", type: "String", editable: true, editType: "Text", width: 100},
			        	            {name: "Effective To", field: "effective_to", type: "String", editable: true, editType: "Text", width: 100},
			        	            {name: "Price Indicator", field: "price_indicator", type: "String", editable: true, editType: "Text", width: 100},
			        	            {name: "Meaning", field: "meaning", type: "String", editable: true, editType: "Text", width: 130},
			        	            {name: "Begin Date", field: "begin_date", type: "Date", width: 120}
			        	        ]
			        	    }
			            ]
					},
			        name: {
			        	title: "Name",
			        	components: [
			        	    {
			        	    	type: "table", 
			        	    	id: "NAME",
			        	    	caption: "Name", 
			        	    	history: true, 
			        	    	actions: [1,2,3,4],
			        	    	cols : [
									{name: "Property", field: "type", type: "String", editable: true, editType: "SelectDropdown", width: 180 },
									{name: "Value", field: "value", type: "String", editable: true, editType: "Text", width: 360},
									{name: "Begin Date", field: "begin_date", type: "Date", width: 160}
								]
			        	    },
			        	    {
			        	    	type: "table", 
			        	    	id: "localLanguageName",
			        	    	caption: "Local Language Name", 
			        	    	history: true, 
			        	    	actions: [1,2,3,4],
			        	    	cols : [
			        	        	{name: "Flag", field: "flag", type: "Boolean", editable: true, editType: "Checkbox", width: 20 },
			        	        	{name: "Property", field: "property", type: "String", editable: true, editType: "SelectDropdown", width: 180},
			        	        	{name: "Language Code", field: "language_code", type: "String", editable: true, editType: "SelectDropdown", width: 120},
			        	        	{name: "Value", field: "value", type: "String", editable: true, editType: "Text", width: 100},
			        	        	{name: "Transliterated Name", field: "transliterated_name", type: "String", editable: true, editType: "Text", width: 120},
			        	        	{name: "Begin Date", field: "begin_date", type: "Date", width: 160}
			        	        ]
			        	    }
			        	]
			        },
			        identifier: {
			        	title: "Identifier",
			        	components: [
			        	    {
			        	    	type: "table", 
			        	    	id: "IDENTIFIER",
			        	    	caption: "Identifier", 
			        	    	history: true, 
			        	    	actions: [1,2,3,4], 
			        	    	cols : [
			        	        	{name: "Property", field: "type", type: "String", editable: true, editType: "SelectDropdown", width: 180 },
			        	        	{name: "Value", field: "value", type: "String", editable: true, editType: "Text", width: 360},
			        	        	{name: "Begin Date", field: "begin_date", type: "Date", width: 160}
			        	        ]
			        	    }
			        	]
			        },
			        clsSchema: {
			        	title: "Classification Schema",
			        	components: [
			        	    {
			        	    	type: "table", 
			        	    	id: "CLASSIFICATIONSCHEME",
			        	    	caption: "Classification Schema", 
			        	    	history: true, 
			        	    	actions: [1,2,3,4], 
			        	    	cols : [
			        	                {name: "Property", field: "type", type: "String", editable: true, editType: "SelectDropdown", width: 180 },
			        	                {name: "Value", field: "value", type: "String", editable: true, editType: "SelectDropdown_c", classifier: "ASSET.CLASSIFIER", width: 180},
			        	                {name: "Meaning", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content", width: 180},
			        	                {name: "Begin Date", field: "begin_date", type: "Date", width: 160}
			        	        ]
			        	    }
			        	]
			        },
			        sedol: {
			        	title: "SEDOL Secondary Quote Relationship",////////////////
			        	alias: "SEDOL",
			        	components: [{
							type: "form", 
							contents: [
								{
									title: "SEDOL Maintenance",
									schema: {
										sedol_value: {back: "ASSET.SEDOLVALUE", label: "Value", type: "Text"},
										sedol_begin_date: {back: "ASSET.SEDOLBEGINDATE", label: "Begin Date", type :"Text", readOnly: true}, 		
										sedol_setPri: {back: "ASSET.SEDOLPRIMARY", label: "Set Primary", type: "Checkbox"}
									}
								},
								{
									title: "ISE OPOL Maintenance",
									schema: {
										opol_value: {back: "ASSET.OPOLVALUE", label: "Value", type :"Text", readOnly: true},
										opol_meaning: {back: "ASSET.OPOLMEANING", label: "Meaning", type :"Text", readOnly: true},
										opol_begin_date: {back: "ASSET.OPOLBEGINDATE", label: "Begin Date", type :"Text", readOnly: true}
									}
								},
								{
									title: "Common",
									schema: {
										sedol_commonname: {back: "ASSET.SEDOLCOMMONNAME", label: "Common Name", type: "Text"},
										sedol_mic: {back: "ASSET.MIC", label: "MIC", type: "SelectDropdown", elem_id: "mic"}	
									}
								}
							]},
				        	{
								type: "table", 
								id: "sedol",
								caption: "SEDOL Secondary Quote Relationship", 
								history: true, 
								readOnly: true,
								cols : [
					        		{name: "RIC", field: "ric", type: "String" },
					        		{name: "Asset State", field: "asset_state", type: "String"},
					        		{name: "Common Name", field: "common_name", type: "String"},
					        		{name: "MIC", field: "mic", type: "String"},
					        		{name: "Target Listing", field: "target_listing", type: "Checkbox"}
				        		]
							}
			        	]	
			        },
			        refData: {
			        	title: "Search Reference Data",////////////////
			        	alias: "Reference Data",
			        	components: [
								{
									type: "table", 
									id: "pageric",
									caption: "Page RIC",
									actions: [2,4],
									history: false, 
									cols : [
									    {name: "Page RIC", field: "page_ric", type: "String", editable: true, editType: "SelectDropdown", width: 700 }
									]
								},
								{	        		
									type: "form", 
									contents: [
										{
											//title: "", 
											schema: {
												primaryChain: {back: "ASSET.PRIMARYCHAIN.RIC", label: "Primary Chain", type: "SelectDropdown", elem_id: "primarychain", actions: [0,3] },
												displayType: {back: "ASSET.DISPLAYTYPE", label: "Display Type", type: "SelectDropdown", elem_id: "displaytype", hasMeaning: true}											
											}
										}
									]
				        	    }        	
			        	]	
			        },               
			        crsUnit: {
			        	title: "Cross Unit Conversion",
			        	components: [
			        	    {
			        	    	type: "table",
			        	    	id: "CRSUNIT",
			        	    	caption: "Cross Unit Conversion",  
			        	    	actions: [2,4],
			        	    	history: false, 
			        	    	cols : [
			        	        	{name: "Type Name", field: "value", type: "String", editable: true, editType: "SelectDropdown_c", classifier: "", clsType: "alone", hasMeaning: true, width: 140 },
			        	        	{name: "Type Meaning", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content", width: 220},
			        	        	{name: "Factor", field: "factor", type: "String", editable: true, editType: "Text", width: 340}
			        	        ]
			        	    }
			        	]
			        },
			        assetRelationship: {
			        	title: "Asset Realtionship",////////////////
			        	components: [
			        	    {	        		
								type: "form", 
								contents: [
									{
										title: "Base Asset Relationship", 
										schema: {
											pilc: {back: "", label: "PILC", type: "Text"},
					        				baseCommonname: {back: "", label: "Common Name", type :"Text"} 			
										}
									}
								]
			        	    },
			        	    {	        		
								type: "form", 
								contents: [
									{
										title: "Underlying Asset Relationship", 
										schema: {
											underlyingRic: {back: "", label: "RIC", type: "Text"},
											underlyingAssetState: {back: "", label: "Asset State", type :"Text"},
											underlyingCommonname: {back: "", label: "Common Name", type :"Text"}
										}
									}
								]
			        	    },
			        	    {	        		
								type: "form", 
								contents: [
									{
										title: "Secondary Underlying Asset Relationship", 
										schema: {
											secondaryRic: {back: "", label: "RIC", type: "Text"},
											secondaryAssetState: {back: "", label: "Asset State", type :"Text"},
											secondaryCommonname: {back: "", label: "Common Name", type :"Text"} 			
										}
									}
								]
			        	    }
			        	]	
			        },
			        locations: {
			        	title: "Locations",
			        	components: [
			        	    {
			        	    	type: "table",
			        	    	id: "LOCATIONS",
			        	    	caption: "Locations",        	    	 
			        	    	actions: [1,3,4],
			        	    	cols : [
			        	        	{name: "Location Type", field: "type", type: "String", editable: true, editType: "SelectDropdown", width: 180},
			        	        	{name: "Location Name", field: "value", type: "String", editable: true, editType: "SelectDropdown_l", hasMeaning: true, width: 180},
			        	        	{name: "Location Description", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content", width: 340}
			        	        ]
			        	    }
			        	]        	                                   
			        },
			        miscellaneous: {
			        	title: "Miscellaneous", template: "miscellaneous",
			        	components: [{
							type: "form", 
							contents: [
								{
									title: "EM Admin Status",
									schema: {
										emadmin_status: {back: "", label: "EM Admin Status", type: "Text", readOnly:true},
					    		    	emadmin_meaning: {back: "", label: "EM Admin Status Meaning", type :"Text", readOnly:true},
					    		    	emadmin_begin_date: {back: "", label: "Begin Date", type: "Text", readOnly:true}			
									}
								},
								{
									title: "Time Series",
									schema: {
										timeseries_adjusted: {back: "", label: "Basic Gap Adjusted", type: "Checkbox", readOnly: true},
										timeseries_trigger: {back: "", label: "Basic Gap Adjustment Trigger", type :"Text", readOnly:true}			
									}
								}
							]
			        	}]	
			        }			
				}
			};
		
		switch(type){
			case "COMMODITY":
				return commodity;
				break;
			case "FUTURESOPTION":
				return futuresOption;
				break;
			default:
				return basic;
		};
		
	};
	
	PT.getROOTUricPage = function(type) {
		var root = {
				title: "ROOT",
				type: "ROOT",
				sections: {
					core: {
						title: "ROOT", 
						components: [{
							type: "form", 
							contents: [
								{
									schema: {
										rootValue: {back: "ROOT.ROOTVALUE", label: "Root Value", type: "Text", validators: ['required']},
										rootState: {back: "ROOT.ROOTSTATE", label: "Root State", type :"ViewDiv", hasMeaning: true},
										description: {back: "ROOT.DESCRIPTION", label: "Description", type: "Text" }							
									}
								}
							]
						}]
					},
			        asset_info: {
			        	title: "Asset Information",
			        	alias: "Asset",
			        	components: [{
							type: "form", 
							contents: [
								{
									schema: {
										commonName: {back: "ROOT.COMMONNAME", label: "Common Name", type: "Text"},
										shortName: {back: "ROOT.SHORTNAME", label: "Short Name", type: "Text"},
										tagValue: {back: "ROOT.TAGVALUE", label: "Tag Value", type: "SelectDropdown", elem_id: "tagvalue"},
										priceUnit: {back: "ROOT.PRICINGUNIT", label: "Price Unit", type: "SelectDropdown", elem_id: "priceunit"}								
									}
								}
							]
						}]
					},
					continuation_series_info: {
			        	title: "Continuation Series Information",
			        	alias: "Continuation",
			        	components: [{
							type: "form", 
							contents: [
								{
									schema: {
										futureAssetType: {back: "ROOT.FUTURESASSETTYPE", label: "Future Asset Type", type: "SelectDropdown", elem_id: "futureassettype"},
										numberOfC: {back: "ROOT.NUMBEROFCSERIESTOBUILD", label: "Number Of C Series To Build", type: "SelectDropdown", elem_id: "numberofc"},
										numberOfCn: {back: "ROOT.NUMBEROFCMSERIESTOBUILD", label: "Number Of Cn Series To Build", type: "SelectDropdown", elem_id: "numberofcn"},
										noOfDays: {back: "ROOT.NUMBEROFDAYSBEFOREEXPIRACY", label: "No Of Days Before Expiry To Rollover", type: "SelectDropdown", elem_id: "noofdays"},
										switchMonths: {back: "ROOT.SWITCHMONTHS", label: "Switch Months", type: "Text"},
										cv: {back: "ROOT.CVSERIESBASISGAPADJUSTMENT", label: "Cv Series Basis Gap Adjustment", type: "SelectDropdown", elem_id: "cv"},
										coi: {back: "ROOT.COISERIESBASISGAPADJUSTMENT", label: "Coi Series Basis Gap Adjustment", type: "SelectDropdown", elem_id: "coi"},
										cvoi: {back: "ROOT.CVOISERIESBASISGAPADJUSTMENT", label: "Cvoi Series Basis Gap Adjustment", type: "SelectDropdown", elem_id: "cvoi"},
										historyStartDate: {back: "ROOT.HISTORYSTARTDATE", label: "History Start Date", type :"jqueryui.Date", validators: [{type:"dateFormat", format: "dd-MM-yyyy"}]}							
									}
								}
							]
						}]
			        },
			        additional_reference_info: {
			        	title: "Additional Reference Information",
			        	alias: "Additional",
			        	components: [{
							type: "form", 
							contents: [
								{
									schema: {
										methodOfDelivery: {back: "ROOT.METHODOFDELIVERY", label: "Method Of Delivery", type: "SelectDropdown", elem_id: "methodofdelivery"},
										cashInLieu: {back: "ROOT.CASHINLIEU", label: "Cash In Lieu", type: "DigitNumber"},
										initialMargin: {back: "ROOT.INITIALMARGIN", label: "Initial Margin", type: "DigitNumber"},
										tickValue: {back: "ROOT.TICKVALUE", label: "Tick Value", type: "DigitNumber"},
										dailyTradingLimit: {back: "ROOT.DAILYTRADINGLIMIT", label: "Daily Trading Limit", type: "DigitNumber"},
										tradingStyle: {back: "ROOT.TRADINGSTYLE", label: "Trading Style", type: "SelectDropdown", elem_id: "tradingstyle"},
										contractType: {back: "ROOT.CONTRACTTYPE", label: "Contract Type", type: "SelectDropdown", elem_id: "contracttype"},
										periodicity: {back: "ROOT.PERIODICITY", label: "Periodicity", type: "SelectDropdown", elem_id: "periodicity"},
										adjustedFlag: {back: "ROOT.ADJUSTEDFLAG", label: "Adjusted Flag", type: "SelectDropdown", elem_id: "adjustedflag"}
									}
								}
							]
						}]
			        },
			        search_data: {
			        	title: "Search Data",
			        	components: [{
							type: "form", 
							contents: [
								{
									schema: {
										displayType: {back: "ROOT.DISPLAYTYPE", label: "Display Type", type: "SelectDropdown", elem_id: "displayType"},
										primaryChain: {back: "ROOT.PRIMARYCHAIN", label: "Primary Chain", type: "SelectDropdown", elem_id: "primaryChain"}
									}
								}
							]
						}]
			        },
			        underlying_asset: {
			        	title: "Underlying Asset",
			        	alias: "UAsset",
			        	components: [{
							type: "form", 
							contents: [
								{
									schema: {
										underlyingAsset_ric: {back: "", label: "RIC", type: "SelectDropdown", elem_id: "uaric"},
										underlyingAsset_notional: {back: "", label: "Notional Product", type: "SelectDropdown", elem_id: "uanotional"}
									}
								}
							]
			        	}]	
			        }, 
			        secondary_underlying_asset: {
			        	title: "Secondary Underlying Asset",
			        	alias: "Secondary UAsset",
			        	components: [{
							type: "form", 
							contents: [
								{
									schema: {
										secondaryUnderlyingAsset_ric: {back: "ROOT.SECONDARYUNDERLYINGASSET.RIC", label: "RIC", type: "SelectDropdown", elem_id: "suaric"}
									}
								}
							]
			        	}]	
			        }, 
			        
			        rcs: {
			        	title: "RCS Underlying Product",
			        	components: [
			        	    {
			        	    	type: "table",
			        	    	id: "ROOT.RCSUNDERLYINGPRODUCT",
			        	    	caption: "RCS Underlying Product",        	    	 
			        	    	actions: [4],
			        	    	history: false, 
			        	    	cols : [
			        	        	{name: "Value", field: "value", type: "String", editable: true, editType: "SelectDropdown_c", classifier: "", clsType: "alone", width: 280 },
			        	        	{name: "Meaning", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content", width: 420}
			        	        ]
			        	    }
			        	]        	                                   
			        },
			        relatednews: {
			        	title: "Related News",
			        	components: [
			        	    {
			        	    	type: "table",
			        	    	id: "ROOT.RELATEDNEWS",
			        	    	caption: "Related News",
			        	    	history: false, 
			        	    	cols : [
			        	        	{name: "Value", field: "value", type: "String", editable: true, editType: "SelectDropdown_c", classifier: "", clsType: "alone", width: 300 },
			        	        	{name: "Meaning", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content", width: 500}
			        	        ]
			        	    }
			        	]        	                                   
			        },
			        relatedpages: {
			        	title: "Related Pages",
			        	components: [
			        	    {
			        	    	type: "table",
			        	    	id: "ROOT.RELATEDPAGE.RIC",
			        	    	caption: "Related Pages",
			        	    	history: false, 
			        	    	cols : [
			        	        	{name: "Value", field: "value", type: "String", editable: true, editType: "SelectDropdown", width: 800 }
			        	        ]
			        	    }
			        	]        	                                   
			        },
			        locations: {
			        	title: "Locations",
			        	components: [
			        	    {
			        	    	type: "table",
			        	    	id: "LOCATIONS",
			        	    	caption: "Locations",        	    	 
			        	    	actions: [1,3,4],
			        	    	history: false, 
			        	    	cols : [
			        	        	{name: "Location Type", field: "type", type: "String", editable: true, editType: "SelectDropdown", width: 180},
			        	        	{name: "Location Name", field: "value", type: "String", editable: true, editType: "SelectDropdown_l", hasMeaning: true, width: 180},
			        	        	{name: "Location Description", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content", width: 340}
			        	        ]
			        	    }
			        	]        	                                   
			        },
			        crsUnit: {
			        	title: "Cross Unit Conversion",
			        	components: [
			        	    {
			        	    	type: "table",
			        	    	id: "ROOT.CROSSUNITCONVERSIONTYPE",
			        	    	caption: "Cross Unit Conversion",  
			        	    	actions: [2,4],
			        	    	history: false, 
			        	    	cols : [
			        	        	{name: "Type Name", field: "value", type: "String", editable: true, editType: "SelectDropdown_c", classifier: "", clsType: "alone", hasMeaning: true, width: 140 },
			        	        	{name: "Type Meaning", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content", width: 220},
			        	        	{name: "Factor", field: "tag", type: "DigitNumber", editable: true, editType: "Text", width: 340}
			        	        ]
			        	    }
			        	]
			        }			
				}
			};
		
		
		var uric = {
				title: "URIC",
				type: "URIC",
				sections: {
					core: {
						title: "URIC", 
						components: [{
							type: "form", 
							contents: [
								{
									schema: {
										cashOrFuture: {back: "URIC.OPTIONTYPE", label: "Cash Or Future", type: "Select", options: ["C", "F"]},
										ricStub: {back: "URIC.RICSTUB", label: "RIC Stub", type: "Text"},
										exerciseStyle: {back: "URIC.EXERCISESTYLE", label: "Exercise Style", type: "SelectDropdown", elem_id: "exercisestyle"},
										methodOfDelivery: {back: "URIC.METHODOFDELIVERY", label: "Method Of Delivery", type: "SelectDropdown", elem_id: "methodofdelivery"},
										cashInLieu: {back: "URIC.CASHINLIEU", label: "Cash In Lieu", type: "DigitNumber"},
										tickValue: {back: "URIC.TICKVALUE", label: "Tick Value", type: "DigitNumber"}						
									}
								}
							]
						}]
					},
			        equity_index_uric: {
			        	title: "Equity/Index URIC",
			        	components: [{
							type: "form", 
							contents: [
								{
									schema: {
										underlyingRIC: {back: "URIC.UNDERLYINGASSET.RIC", label: "Underlying RIC", type: "SelectDropdown", elem_id: "underlyingric"},
										secondaryUnderlyingRIC: {back: "URIC.SECONDARYUNDERLYINGASSET.RIC", label: "Secondary Underlying RIC", type: "SelectDropdown", elem_id: "secondaryunderlyingric"},
										uricAlias: {back: "URIC.ALIAS", label: "URIC Alias", type: "SelectDropdown", elem_id: "uricalias"},
										leaps: {back: "URIC.LEAPS", label: "Leaps", type: "SelectDropdown", elem_id: "leaps"}								
									}
								}
							]
						}]
					},
					future_uric: {
			        	title: "Future URIC",
			        	components: [{
							type: "form", 
							contents: [
								{
									schema: {
										assetRoot: {back: "URIC.ASSETROOT", label: "Asset Root", type: "SelectDropdown", elem_id: "assetroot"},
										secondaryAssetRoot: {back: "URIC.SECONDARYROOT", label: "Secondary Asset Root", type: "SelectDropdown", elem_id: "secondaryassetroot"},
										monthOffset: {back: "URIC.MONTHOFFSET", label: "Month Offset", type: "DigitNumber"}
									}
								}
							]
						},
						{
							type: "table", 
							id: "URIC.MAPPINGOFFSETPATTERN",
							caption: "Mapping Offset Pattern",
							history: false, 
							cols : [
							    {name: "Value", field: "value", type: "String", editable: true, editType: "SelectDropdown", hasMeaning: true, width: 300 },
							    {name: "Meaning", field: "meaning", type: "String", editable: true, editType: "Content", relative: "value", width: 500 }
							]
						}]
			        },
			        related_page_news: {
			        	title: "Related Page/News",
			        	components: [{
							type: "table", 
							id: "URIC.RELATEDPAGE.RIC",
							caption: "RelatedPage",
							history: false, 
							cols : [
							    {name: "Value", field: "value", type: "String", editable: true, editType: "SelectDropdown", width: 800 }
							]
						},
						{
			    	    	type: "table",
			    	    	id: "URIC.RELATEDNEWS",
			    	    	caption: "Related News",
			    	    	history: false, 
			    	    	cols : [
			    	        	{name: "Value", field: "value", type: "String", editable: true, editType: "SelectDropdown_c", classifier: "", clsType: "alone", width: 300 },
			    	        	{name: "Meaning", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content", width: 500}
			    	        ]
			    	    }]
			        },
			        additional_info: {
			        	title: "Additional Info",
			        	components: [{
							type: "form", 
							contents: [
								{
									schema: {
										tradingStyle: {back: "URIC.TRADINGSTYLE", label: "Trading Style", type: "SelectDropdown", elem_id: "tradingstyle"},
										periodicity: {back: "URIC.PERIODCITY", label: "Periodicity", type: "SelectDropdown", elem_id: "periodicity"},
										adjustedFlag: {back: "URIC.ADJUSTEDFLAG", label: "Adjusted Flag", type: "SelectDropdown", elem_id: "adjustedflag"},
										contractType: {back: "URIC.CONTRACTTYPE", label: "Contract Type", type: "SelectDropdown", elem_id: "contracttype"},
										initialMargin: {back: "URIC.INITIALMARGIN", label: "Initial Margin", type: "DigitNumber"},
										dailyTradingLimit: {back: "URIC.DAILYTRADINGLIMIT", label: "Daily Trading Limit", type: "DigitNumber"},
										seriesDescription: {back: "URIC.SERIESDESCRIPTION", label: "Series Description", type: "Text"}							
									}
								}
							]
						}]
			        },
			        search_detail: {
			        	title: "Search Details",
			        	components: [{
							type: "form", 
							contents: [
								{
									schema: {
										s_primaryChain: {back: "URIC.PRIMARYCHAIN.RIC", label: "Primary Chain", type: "SelectDropdown", elem_id: "sprimarychain"},
										s_displayType: {back: "URIC.DISPLAYTYPE", label: "Display Type", type: "SelectDropdown", elem_id: "sdisplaytype", hasMeaning: true},										
										strikePriceMultiplier: {back: "URIC.STRIKEPRICCEMULTIPLIER", label: "StrikePriceMultiplier", type :"DigitNumber"}							
									}
								}
							]
			        	}]	
			        }, 
			        locations: {
			        	title: "Locations",
			        	components: [
			        	    {
			        	    	type: "table",
			        	    	id: "LOCATIONS",
			        	    	caption: "Locations",        	    	 
			        	    	actions: [1,3,4],
			        	    	history: false, 
			        	    	cols : [
			        	        	{name: "Location Type", field: "type", type: "String", editable: true, editType: "SelectDropdown", width: 180},
			        	        	{name: "Location Name", field: "value", type: "String", editable: true, editType: "SelectDropdown_l", hasMeaning: true, width: 180},
			        	        	{name: "Location Description", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content", width: 340}
			        	        ]
			        	    }
			        	]        	                                   
			        },
			        crsUnit: {
			        	title: "Cross Unit Conversion",
			        	components: [
			        	    {
			        	    	type: "table",
			        	    	id: "URIC.CROSSUNITCONVERSIONTYPE",
			        	    	caption: "Cross Unit Conversion",  
			        	    	actions: [2,4],
			        	    	history: false, 
			        	    	cols : [
			        	        	{name: "Type Name", field: "value", type: "String", editable: true, editType: "SelectDropdown_c", classifier: "", clsType: "alone", hasMeaning: true, width: 140 },
			        	        	{name: "Type Meaning", field: "meaning", type: "String", relative: "value", editable: true, editType: "Content", width: 220},
			        	        	{name: "Factor", field: "tag", type: "DigitNumber", editable: true, editType: "Text", width: 340}
			        	        ]
			        	    }
			        	]
			        }		
				}
			};
		
		switch(type){
			case "ROOT":
				return root;
				break;
			case "URIC":
				return uric;
				break;
			default:
				return {};
		};
	};

}.call(this));